from django.shortcuts import render
from .models import *

# Create your views here.


def index(request):
    booklist = BookInfo.objects.all()
    context = {'title': '星星', 'list': booklist}
    return render(request, 'booktest/index.html', context)


def show(request, id):

    context = {'list': 'df'}
    return render(request, 'booktest/show.html', context)